@include('layouts.Common.header')
<form name="actionForm" id="actionForm" method="post" autocomplete="off">
    @csrf
    <div class="form-group ">
        <label class="col-sm-2  col-form-label ">父类：</label>
        <div class="col-sm-8">
            <div class="selectparent"></div>
        </div>
    </div>
    <div class="form-group ">
        <label class="col-sm-2  col-form-label "><i>*</i>名称：</label>
        <div class="col-sm-6">
            <input type="text" class="form-control" name="data[name]"
                value="{{ isset($gdata['name']) ? $gdata['name'] : '' }}" placeholder="">
        </div>
    </div>

    <div class="form-group ">
        <label class="col-sm-2  col-form-label ">标识：</label>
        <div class="col-sm-6">
            <input type="text" class="form-control" name='data[sign]'
                value="{{ isset($gdata['sign']) ? $gdata['sign'] : '' }}" placeholder="">
        </div>
    </div>
    <input type="dosubmit" id="dosubmit" name="dosubmit" hidden />
</form>

{!! js() !!}
<script>
    $(function() {
        $(".selectparent").select({!! json_encode($selectdata) !!});
        $(".Switch").bootstrapSwitch('state', $(".Switch").prop('checked'));
    })
</script>
